package com.dragon.logical.service.avttendance.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragon.common.util.StringUtils;
import com.dragon.repository.entity.Attendance;
import com.dragon.repository.entity.AttendanceChild;
import com.dragon.repository.mapper.AttendanceChildMapper;
import com.dragon.logical.service.avttendance.IAttendanceChildService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 考勤子表 服务实现类
 * </p>
 *
 * @author sy
 * @since 2023-07-20
 */
@Service
public class AttendanceChildServiceImpl extends ServiceImpl<AttendanceChildMapper, AttendanceChild> implements IAttendanceChildService {

    @Autowired
    AttendanceChildMapper childMapper;

    @Override
    public List<AttendanceChild> childList(Integer adminId) {
        QueryWrapper<AttendanceChild> wrapper = new QueryWrapper<>();
        //wrapper.lambda().eq(AttendanceChild::getAdminId,adminId);
        List<AttendanceChild> childList = childMapper.selectList(wrapper);
        return childList;
    }
}
